<%@ page contentType="text/html;charset=UTF-8" language="java" pageEncoding="utf-8" %>
<%@ taglib prefix="c" uri="http://java.sun.com/jsp/jstl/core" %>
<%@ taglib prefix="fn" uri="http://java.sun.com/jsp/jstl/functions" %>
<!DOCTYPE html PUBLIC "-//W3C//DTD HTML 4.01 Transitional//EN" "http://www.w3.org/TR/html4/loose.dtd">
<% String contextPath = request.getContextPath(); %>
<html>
<head>
	<meta charset="UTF-8">
	<title>部门管理</title>
	<link rel="stylesheet" type="text/css" href="<%=contextPath%>/resources/easyUI/themes/gray/easyuia.css">
	<link rel="stylesheet" type="text/css" href="<%=contextPath%>/resources/easyUI/icon.css">
	<link rel="stylesheet" type="text/css" href="<%=contextPath%>/resources/query-form.css">
	<link rel="stylesheet" type="text/css" href="<%=contextPath%>/resources/jquery.loadmask.css" />
	<script type="text/javascript" src="<%=contextPath%>/resources/js/jquery-1.8.0.min.js"></script>
	<script type="text/javascript" src="<%=contextPath%>/resources/js/jquery.easyui.min.js"></script>
	<script type="text/javascript" src="<%=contextPath%>/resources/easyUI/easyui-lang-zh_CN.js"></script>
	<script type='text/javascript' src='<%=contextPath%>/resources/js/views/commonFunction.js'></script>
	<script type='text/javascript' src='<%=contextPath%>/resources/js/views/defineTable.js'></script>
	<script type='text/javascript' src='<%=contextPath%>/resources/js/views/defineInit.js'></script>
	<script type='text/javascript' src='<%=contextPath%>/resources/js/forms/formsDepart.js'></script>


</head>
<body>
<div id="content" style="height: 100%">
	<div class="menu_style">
		<form action="<%=contextPath%>/forms/depart/list.do" id="ff" method="post">
		<input type="hidden" id="page" name="page" value="1">
		<input type="hidden" id="pageSize" name="pageSize" value="500">
		<label style="color: red"> 报表类型*:
			<select class="easyui-combobox" name="formid"  id="formid" style="width: 200px;">
				<c:forEach var="formOption" items="${formes}">
					<option value="${formOption.id}">${formOption.name}</option>
				</c:forEach>
			</select>
		</label>

		<label class="ml20"> 年份:
			<select class="easyui-combobox" name="year"  id="year" style="width: 100px;">
				<c:forEach var="yearOption" items="${years}">
					<option value="${yearOption}">${yearOption}</option>
				</c:forEach>
			</select>
		</label>

		<label class="ml10"> 地区:
			<input class="easyui-combobox" name="areaid" id="areaid"  class="w180"/>
		</label>

		<label class="ml10"> <a href="#" onclick="CRUD.queryList();"class="easyui-linkbutton" iconCls="icon-search">查询</a> </label>
		</form>
	</div>

	<div id="tablepanel" class="easyui-panel" style="width:99%;height:auto;padding:10px;" title="部门列表">
		<table id="tt" style="width:100%;height:auto;" rownumbers="true" ></table>
	</div>

</div>

<div id="dialogAdd">
	<form id="fmAdd" name="formHead" style="text-align:right; padding-top:10px; height:80%; width: 98%;" >
		<table style="text-align:left;padding-left: 20px;width: 95%" id="ruleTable">
			<tr>
				<td style="width:120px;text-align:right"><label>年份:</label></td>
				<td><input class="easyui-textbox"  name="year" id="yearA" Readonly style="margin-left:2px;width: 200px;"/></td>
			</tr>
			<tr>
				<td style="width:120px;text-align:right"><label>上报部门:</label></td>
				<td>
					<select class="easyui-combobox" name="departidA"  id="departidA" style="margin-left:2px;width: 200px;" ></select>
				</td>
			</tr>
		</table>
		<div style = "margin-right:40%">
			<a class="easyui-linkbutton" id="a_AddOK" onclick="">确定</a>
			<a class="easyui-linkbutton" id="a_AddCancle">取消</a>
		</div>
	</form>
</div>

<div id="dialogUpdate">
	<form id="fmUpdate" name="formHead" style="text-align:right; padding-top:10px; height:80%; width: 98%;" method="post"
		  action="/forms/depart/save.do">
		<input type="hidden" name="id" id="idF" />
		<input type="hidden" name="formid" id="formidF"/>
		<table style="text-align:left;padding-left: 20px;width: 95%" id="ruleTable">
			<tr>
				<td style="width:120px;text-align:right"><label>年份:</label></td>
				<td><input class="easyui-textbox"  name="year" id="yearF" Readonly style="margin-left:2px;width: 200px;"/></td>
			</tr>
			<tr>
				<td style="width:120px;text-align:right"><label>上报部门:</label></td>
				<td>
					<select class="easyui-combobox" name="departid"  id="departid" style="margin-left:2px;width: 200px;">
						<c:forEach var="departmentOption" items="${departmentes}">
							<option value="${departmentOption.id}">${departmentOption.name}</option>
						</c:forEach>
					</select>
				</td>
			</tr>
		</table>
		<div style = "margin-right:40%">
			<a class="easyui-linkbutton" id="a_UpdateOK" onclick="">确定</a>
			<a class="easyui-linkbutton" id="a_UpdateCancle">取消</a>
		</div>
	</form>
</div>

<div id="dialogCopyDep">
	<input type="hidden" name="depId" id="depId" />
	<div style="text-align:left;padding-left: 20px;width: 95%;overflow: auto;min-height: 101px;" id="depList">

	</div>
	<div style = "text-align: center;clear: both;margin-top: 15px;">
		<a class="easyui-linkbutton"  onclick="copySubmit()">确定</a>
		<a class="easyui-linkbutton" id="copyCancle" onclick="copyCancle()">取消</a>
	</div>
</div>


</body>
</html>